package com.group.eams.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.group.eams.pojo.dto.AssetDetailQueryDto;
import com.group.eams.pojo.dto.MaintenApplyQueryDto;
import com.group.eams.pojo.entity.MaintenApply;
import com.group.eams.pojo.entity.MaintenApply;
import com.group.eams.pojo.vo.FixedAssetListVo;
import com.group.eams.pojo.vo.MaintenApplyListVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
* @author 恩哲欣
* @description 针对表【mainten_apply(维保申请)】的数据库操作Mapper
* @createDate 2024-10-29 16:09:34
* @Entity com.group.eams.pojo.entity.MaintenApply
*/
public interface MaintenApplyMapper extends BaseMapper<MaintenApply> {

    /**
     * 分页条件查询
     * @param page 分页条件
     * @param maintenApplyQueryDto 查询条件
     * @return 页数数据+总记录数
     */
    Page<MaintenApplyListVo> findMaintenApplyByPage(Page<MaintenApply> page,
                                                    @Param("maintenApplyQueryDto") MaintenApplyQueryDto maintenApplyQueryDto);

    /**
     * 分页条件查询
     * @param page 分页条件
     * @return 页数数据+总记录数
     */
    Page<FixedAssetListVo> findDetailByPage(Page<MaintenApply> page, @Param("assetDetailQueryDto") AssetDetailQueryDto assetDetailQueryDto);

    /**
     * 根据保修申请单号查询
     * @param maintenApplyNum
     */
    List<MaintenApply> findByMaintenApplyNum(String maintenApplyNum);
}
